package woninsuk.board;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.SqlSession;

import woninsuk.com.db.mybatis.SqlMapClient;

public class BoardDAO {

private static SqlSession session;
	
	static {
		session = SqlMapClient.getSqlSession();
	}
	
	public List<Map> selectView(){
		List<Map> list = session.selectList("board.select");
		return list;
	}
	
	public int insertProc(Map paramMap){
		int returnValue = session.insert("board.insert", paramMap);
		return returnValue;
	}
}
